package org.mx.service.server.jmx;

import java.util.Set;

import org.mx.service.server.RestfulServerConfigBean;

/**
 * Restful服务器MXBean实现类
 * @author john.peng
 *
 */
public class RestfulServer extends HttpServer implements RestfulServerMXBean {
	private Set<String> resources;

	/**
	 * 构造函数
	 * @param configBean Restful服务器配置信息对象
	 */
	public RestfulServer(RestfulServerConfigBean configBean) {
		super(configBean);
	}

	/**
	 * 设置Restful资源类名称集合
	 * @param resources 资源类名集合
	 */
	public void setRestfulResourses(Set<String> resources) {
		this.resources = resources;
	}

	@Override
	public Set<String> getRestfulResources() {
		return resources;
	}

}
